package com.navi.entity;

import javax.persistence.*;
import java.sql.Timestamp;

//@Entity
//@Table(name = "defect_partition_conf", schema = "ch_qms", catalog = "")
public class DefectPartitionConf extends BaseEntity {
    private String dataSeqId;
    private String shopId;
    private String opeId;
    private String mqName;
    private String prtTableName;
    private String executeFlg;
    private String evtUser;
    private Timestamp etlTimestamp;
    private Timestamp evtTimestamp;

    @Id
    @Column(name = "DATA_SEQ_ID")
    public String getDataSeqId() {
        return dataSeqId;
    }

    public void setDataSeqId(String dataSeqId) {
        this.dataSeqId = dataSeqId;
    }

    @Basic
    @Column(name = "SHOP_ID")
    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    @Basic
    @Column(name = "OPE_ID")
    public String getOpeId() {
        return opeId;
    }

    public void setOpeId(String opeId) {
        this.opeId = opeId;
    }

    @Basic
    @Column(name = "MQ_NAME")
    public String getMqName() {
        return mqName;
    }

    public void setMqName(String mqName) {
        this.mqName = mqName;
    }

    @Basic
    @Column(name = "PRT_TABLE_NAME")
    public String getPrtTableName() {
        return prtTableName;
    }

    public void setPrtTableName(String prtTableName) {
        this.prtTableName = prtTableName;
    }

    @Basic
    @Column(name = "EXECUTE_FLG")
    public String getExecuteFlg() {
        return executeFlg;
    }

    public void setExecuteFlg(String executeFlg) {
        this.executeFlg = executeFlg;
    }

    @Basic
    @Column(name = "EVT_USER")
    public String getEvtUser() {
        return evtUser;
    }

    public void setEvtUser(String evtUser) {
        this.evtUser = evtUser;
    }

    @Basic
    @Column(name = "ETL_TIMESTAMP")
    public Timestamp getEtlTimestamp() {
        return etlTimestamp;
    }

    public void setEtlTimestamp(Timestamp etlTimestamp) {
        this.etlTimestamp = etlTimestamp;
    }

    @Basic
    @Column(name = "EVT_TIMESTAMP")
    public Timestamp getEvtTimestamp() {
        return evtTimestamp;
    }

    public void setEvtTimestamp(Timestamp evtTimestamp) {
        this.evtTimestamp = evtTimestamp;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        DefectPartitionConf that = (DefectPartitionConf) o;

        if (dataSeqId != null ? !dataSeqId.equals(that.dataSeqId) : that.dataSeqId != null) return false;
        if (shopId != null ? !shopId.equals(that.shopId) : that.shopId != null) return false;
        if (opeId != null ? !opeId.equals(that.opeId) : that.opeId != null) return false;
        if (mqName != null ? !mqName.equals(that.mqName) : that.mqName != null) return false;
        if (prtTableName != null ? !prtTableName.equals(that.prtTableName) : that.prtTableName != null) return false;
        if (executeFlg != null ? !executeFlg.equals(that.executeFlg) : that.executeFlg != null) return false;
        if (evtUser != null ? !evtUser.equals(that.evtUser) : that.evtUser != null) return false;
        if (etlTimestamp != null ? !etlTimestamp.equals(that.etlTimestamp) : that.etlTimestamp != null) return false;
        if (evtTimestamp != null ? !evtTimestamp.equals(that.evtTimestamp) : that.evtTimestamp != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = dataSeqId != null ? dataSeqId.hashCode() : 0;
        result = 31 * result + (shopId != null ? shopId.hashCode() : 0);
        result = 31 * result + (opeId != null ? opeId.hashCode() : 0);
        result = 31 * result + (mqName != null ? mqName.hashCode() : 0);
        result = 31 * result + (prtTableName != null ? prtTableName.hashCode() : 0);
        result = 31 * result + (executeFlg != null ? executeFlg.hashCode() : 0);
        result = 31 * result + (evtUser != null ? evtUser.hashCode() : 0);
        result = 31 * result + (etlTimestamp != null ? etlTimestamp.hashCode() : 0);
        result = 31 * result + (evtTimestamp != null ? evtTimestamp.hashCode() : 0);
        return result;
    }
}
